'''
Author: your name
Date: 2020-10-28 09:23:51
LastEditTime: 2020-10-28 09:53:45
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \python-study\classStudy\10.py
'''
# 运算符重载
class supperList(list):
    def __sub__(self,b):
        a=self[:]
        b=b[:]
        while len(b)>0:
            element_b=b.pop()
            if element_b in a:
                a.remove(element_b)
        return a
    
if __name__ == "__main__":
    a=tuple([1])
    print(a)
    print(supperList([1,2,3]) - supperList([3,4]))